<?php if (!isset($_GET['ajax']) || empty($_GET['ajax'])) { ?>
    <?php get_header(); ?>
<?php } ?>
<?php query_posts($query_string.'&orderby=date&order=ASC'); ?>
<body>
<table height="100%" width="100%" cellpadding="0" cellspacing="0">
<tr valign="top">
<td>
<div id="container">
    <div id="colmid">
        <div id="colright">
            <?php if (have_posts()) : ?>
            <div id="leftwrap">
                <div id="left">
                    <div class="content">
                        <?php $index = 0; ?>
                        <?php while (have_posts()) : the_post(); ?>
                            <?php if (has_tag('Links')) { ?>
                                <?php if ($index > 0) {?>
                                    <hr/>
                                <?php } ?>
                                <h3><?php the_title(); ?></h3>
                                <?php the_content(); ?>
                            <?php $index++; ?>
                            <?php } ?>
                        <?php endwhile; ?>
                    </div>
                </div>
            </div>
            <div id="rightwrap">
                <div id="right">
                    <div class="content">
                        <?php $index = 0; ?>
                        <?php while (have_posts()) : the_post(); ?>
                            <?php if (has_tag('Rechts')) { ?>
                                <?php if ($index > 0) {?>
                                    <hr/>
                                <?php } ?>
                                <h3><?php the_title(); ?></h3>
                                <?php the_content(); ?>
                            <?php $index++; ?>
                            <?php } ?>
                        <?php endwhile; ?>
                    </div>
                </div>
            </div>
            <?php endif; ?>
            <?php get_sidebar(); ?>
        </div>
    </div>
</div>
</td>
</tr>
<tr valign="top">
    <td height="100%" width="100%">
        <?php get_footer(); ?>
    </td>
</tr>
</table>
</body>
</html>
